x86_32: Fix _raw_read_trylock() build on some gcc versions.
authorKeir Fraser <keir@xen.org>
Sun, 27 Mar 2011 08:30:35 +0000 (09:30 +0100)
committerKeir Fraser <keir@xen.org>
Sun, 27 Mar 2011 08:30:35 +0000 (09:30 +0100)
commit6e111d0a8eb6a143a4e2b2367081d342a41dcccd
treeca0be74b4675a3f73d8d796432e8dc92bf2193be
parent4d21248c007f0b688d41d9282e69e0d6cbde3ece
x86_32: Fix _raw_read_trylock() build on some gcc versions.

Was broken by 23099:612171ff82ea.

A bool_t is a single byte, and needs a 'q' register constraint. Avoid
the whole issue by changing the variable to an int, and explicitly
specify the operand suffix as 'l' for good measure.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/spinlock.h